﻿<%@ Page Language="C#" MasterPageFile="~/Shared/MainPage.Master" AutoEventWireup="true" CodeBehind="AccessoryStockInList.aspx.cs" Inherits="Runda.CMS.Portal.StockManagement.AccessoryStockInList" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">
    <script src="../Content/global.js" type="text/javascript"></script>     
    <link href="../Content/global.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Menu/Menu.css" rel="stylesheet" type="text/css" /> 
    <link href="../Content/Find/find.css" rel="stylesheet" type="text/css" />
   <link href="../Content/Grid/Grid.css" rel="stylesheet" type="text/css" /> 
    <script src="../Content/Grid/map_grid.js" type="text/javascript" ></script>
    <link href="../Content/Pager.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../Content/jquery-1.3.2.js"></script>
    <script type="text/javascript" src="../Content/Bussiness/datasync.js"></script>
    
      <script type="text/javascript">
          function OpenStockIn(ID) {
              var url = "AccessoryStockIn.aspx";
              if (ID != "") {
                  url = url + "?StockInID="+ID;
              }   
                openMyWin(url, 'StockIn', 800, 600);
        }        
    </script>
    
    <script type="text/javascript">

        function OnDelConfirm() {
            return confirm('删除后无法恢复数据，确定要删除吗?');
        }
    </script> 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="server">

<div class="Container">
        <table id="appFind" class="find" cellspacing="0" cellpadding="0" border="0"> 
            <tbody>
                <tr height="23">
                    <td class="wizHead" colspan="7">
                        <table style="table-layout: fixed; font-size: 9pt" cellspacing="0" cellpadding="0" width="100%" height="100%">
                            <colgroup>
                                <col>
                                <col width="60">
                                <col width="60"> 
                                <tr><td style="color:#ffffff"><b>快速查询</b></td><td class="icMenu mnuRight" noWrap></td></tr>
                        </table>
                    </td>
                </tr>
                <tr id="__appFind_trQuery" height="40">
                    <td class="wizBox1" colspan="7">
                    <table id="__appFind_tbQuery1" style="TABLE-LAYOUT: fixed; FONT-SIZE: 9pt" height="100%" cellSpacing="0" cellPadding="0" width="100%"><col><tr><td align="right">
                        入库单号/供应单号：</td>
                        <td><asp:TextBox ID="txtContractCodeBasic" runat="server" Width="300px" CssClass="input"></asp:TextBox></td>
                        <td align="right"> 配件编号：</td>
                        <td><asp:TextBox ID="txtAccessoryCompanyNum" runat="server" Width="100px" CssClass="input"></asp:TextBox></td>
                        <td align="right">识别号：</td>
                        <td><asp:TextBox ID="txtAccessoryCode" runat="server" Width="100px" CssClass="input"></asp:TextBox></td>
                        <td><asp:Button ID="btnSearchBasic" runat="server" Text="查找" CssClass="button" onclick="btnSearch_Click"/></td></tr></table>
                    
                    </td>
                </tr>
            </tbody>
    </table>            
</div>

 <div class="Container">
         
         <table class="mnubar" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td style="padding-left: 5px" nowrap>
                        <b>入库单列表</b>
                    </td>
                    <td style="padding-left: 5px">
                        <img src="../Content/Grid/separator.gif">
                    </td>
                    <td class="icMenu" nowrap>                   
                         
                    </td>       
                      <td class="icMenu mnuRight" nowrap>               
                      <span class="menu"  onclick="OpenStockIn('');">
                            <img class="mnuBtn" src="../Content/Grid/New_16_blue.gif"><span class="mnuBtn">添加入库单</span></span>      
                    </td>           
                </tr>
            </tbody>
        </table>       
         
        <div style="border-bottom: #c2c2bf 1px solid; border-top: #969693 1px solid">
        </div>
             <asp:Repeater ID="RepeaterUsers" runat="server" 
                 onitemcommand="RepeaterUsers_ItemCommand" 
             onitemdatabound="RepeaterUsers_ItemDataBound">
                 <HeaderTemplate>
                    <table id="grid" class="grid" cellspacing="0" cellpadding="0">
            <tbody>
                <tr class="header">
                    <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">入库单号</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>
                      <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">入库类型</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>
                    <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">配件供应单号</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>
                     <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">操作人</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td> 
                     <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">操作时间</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td> 
                    <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">备注</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>
                    <td> 
                      <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">操作</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td> 
                    <td width="14">
                        <asp:ImageButton ID="imgbtnRefersh" CommandName="refersh" runat="server" ImageUrl="../Content/Grid/grid_Refresh.gif" AlternateText="刷新列表"/> 
                    </td>
                </tr>
                 </HeaderTemplate>
                 <ItemTemplate>
                  <tr class="data" ondblclick="OpenStockIn('<%#Eval("StockInID") %>')" onclick="handleClick()" >
                    <td>
                        <%#Eval("BillCode")%>
                          <asp:Label runat="Server" ID="StockInID" Visible="false" Text='<%#Eval("StockInID") %>'></asp:Label>
                    </td> 
                    <td><%#Eval("StorckInType").ToString() =="0"?"保内订单":"采购入库" %></td> 
                    <td><%#Eval("supplyno")%></td> 
                    <td><asp:Label ID="lblOperator" runat="server"></asp:Label><asp:Label ID="lblOperatorValue" runat="server" Visible="false" Text='<%#Eval("Operator") %>'></asp:Label></td> 
                    <td><%# Eval("CreatedOn")%></td>
                    <td class="tdautolen"><asp:Label ID="Memo" runat="server" Text='<%#Eval("Memo") %>' ToolTip='<%#Eval("Memo") %>'></asp:Label></td> 
                    <td><asp:LinkButton ID="ltnDel" CommandName="delete" runat="server" >删除</asp:LinkButton> &nbsp;&nbsp;&nbsp;
                    <asp:LinkButton ID="linkview" CommandName="view" runat="server" >入库明细</asp:LinkButton></td>
                    <td></td>
                </tr>
                 </ItemTemplate>
                 <FooterTemplate>
                    </tbody>
                </table>  
                 </FooterTemplate>
             </asp:Repeater>    
               <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="paginator"  
                            CurrentPageButtonClass="cpb" 
                            CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条" 
                            FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" 
                            ShowCustomInfoSection="Left" Width="100%" LayoutType="Table"  
                            SubmitButtonClass="but" SubmitButtonText="转到" OnPageChanged="AspNetPager1_PageChanged">
                        </webdiyer:AspNetPager>    
         </div>
         <div id="__divRuning" style="POSITION: absolute; Z-INDEX: 108; width:260px; height:47px; BACKGROUND-COLOR: white; border:#9E9E9B 1px solid; font:bold 14px; color:#FF5A00; text-align:center; padding-top:16px; DISPLAY:none;">数据同步中，请稍候...</div>  
         
 <div class="Container">
         
         <table class="mnubar" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td style="padding-left: 5px" nowrap>
                        <b>入库明细</b>
                    </td>
                    <td style="padding-left: 5px">
                        <img src="../Content/Grid/separator.gif">
                    </td>
                    <td class="icMenu" nowrap>                   
                         
                    </td>       
                      <td class="icMenu mnuRight" nowrap>               
                      <asp:Button ID="btnExport" runat="server" Text="导出(Excel)" CssClass="button" onclick="btnExportExcel_Click"/>    
                    </td>           
                </tr>
            </tbody>
        </table>       
         
        <div style="border-bottom: #c2c2bf 1px solid; border-top: #969693 1px solid">
        </div>
             <asp:Repeater ID="Repeater1" runat="server">
                 <HeaderTemplate>
                    <table id="grid" class="grid" cellspacing="0" cellpadding="0">
            <tbody>
                <tr class="header">
                    <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">配件编号</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>
                      <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">配件名称</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>
                    <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">计量单位</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>
                     <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">配件识别号</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td> 
                     <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">状态</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td> 
                    
                    <td width="14">
                        <asp:ImageButton ID="imgbtnRefersh" CommandName="refersh" runat="server" ImageUrl="../Content/Grid/grid_Refresh.gif" AlternateText="刷新列表"/> 
                    </td>
                </tr>
                 </HeaderTemplate>
                 <ItemTemplate>
                  <tr class="data" onclick="handleClick()" >
                    <td><%#Eval("AccessoryCompanyNum")%></td> 
                    <td><%#Eval("AccessoryName")%></td> 
                    <td><%#Eval("Unit")%></td> 
                    <td><%# Eval("AccessoryCode")%></td>
                    <td><%#Eval("AccessoryStatus")%></td> 
                    <td></td>
                </tr>
                 </ItemTemplate>
                 <FooterTemplate>
                    </tbody>
                </table>  
                 </FooterTemplate>
             </asp:Repeater>    
               <webdiyer:AspNetPager ID="AspNetPager2" runat="server" CssClass="paginator" PageSize="5" 
                            CurrentPageButtonClass="cpb" 
                            CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条" 
                            FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" 
                            ShowCustomInfoSection="Left" Width="100%" LayoutType="Table"  
                            SubmitButtonClass="but" SubmitButtonText="转到" OnPageChanged="AspNetPager2_PageChanged">
                        </webdiyer:AspNetPager>    
         </div>  
         <input maptype="lu" id="hiddenStockID" class="lu" type="hidden" runat="server" name="hiddenStockID" value="" />     
</asp:Content>
